/* ============================================================
   10-mail.css
   Thematisch aufgeteilt aus default.css + SiTTsBlazor.css
   ============================================================ */

/* ---- aus default.css ---- */

.JournalEntry {
    display: flex;
    align-items: flex-start;
    padding: 10px;
    font-family: sans-serif;
}

    .JournalEntry .vh-left {
        width: 40px;
        margin-top: 4px;
        height: 100%
    }

        .JournalEntry .vh-left img {
            width: 40px;
            z-index: 1;
            margin-right: 0;
        }

        .JournalEntry .vh-left .av.av-badge {
            width: 40px;
            height: 40px;
            z-index: 1;
            margin-right: 0;
        }

    .JournalEntry:not(:last-child):not(.Notes) .vh-left::before {
        content: "";
        background-color: transparent;
        border: 1px dashed rgba(255,255,255,0.3);
        height: 100%;
        transform: rotate(90deg) translate(50px,0);
    }

    .JournalEntry .JournalEntry-content {
        flex: 1;
    }

    .JournalEntry .JournalEntry-header {
        display: flex;
        justify-content: space-between;
    }

    .JournalEntry .user-name {
    }

    .JournalEntry .action-type {
        font-weight: 600;
    }

    .JournalEntry .user-name,
    .JournalEntry .action-type {
        white-space: nowrap;
    }

    .JournalEntry .timestamp {
        color: gray;
        font-size: 0.9em;
        margin-left: auto;
    }

    .JournalEntry .action-text {
        font-size: 14px;
    }

.JournalEntry-header {
    display: flex;
    flex-direction: row;
}

    .JournalEntry-header div:first-child {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .JournalEntry-header div:last-child {
        min-width: 160px;
        text-align: right;
    }

    .JournalEntry-header div:first-child span:last-child {
        text-align: right;
    }

.JournalEntry-content {
    /*    margin-top: 6px;*/
    margin-left: 10px;
}

    .JournalEntry-content pre {
        margin-bottom: 0 !important;
    }

    .JournalEntry-content .separator {
        margin-right: 5px;
        margin-left: 5px;
    }

.JournalEntry.Notes .card-btn {
    margin-top: 0;
}

.JournalEntry.Notes .action-text {
    display: flex
}

    .JournalEntry.Notes .action-text .btn-container {
        margin-left: auto;
        min-height: 32px;
        display: flex;
    }

    .JournalEntry.Notes .action-text textarea {
        margin-right: 10px;
    }

.MailEntry {
    border-inline-start: .25rem solid #009ee0a8;
    border-radius: .5rem;
    background-color: #f3f3f3;
    box-shadow: 2px 2px 2px rgba(10,10,10,.04);
    margin-bottom: 1rem;
    width: 100%;
    display: flex;
    flex-direction: row;
    padding-top: 5px;
    padding-bottom: 5px;
}

    .MailEntry .iconLeft {
        width: 35px;
        justify-content: center;
        display: flex;
        padding-left: 4px;
        padding-right: 6px;
        text-decoration: none;
        color: inherit;
    }

        .MailEntry .iconLeft i {
            margin-top: auto;
            margin-bottom: auto;
        }

    .MailEntry .MailBody .MailBodyRow {
        width: 100%
    }

        .MailEntry .MailBody .MailBodyRow pre {
            margin-bottom: 0px;
        }

    .MailEntry .MailBody .MailFrom {
        font-weight: 600;
        color: #333335
    }

        .MailEntry .MailBody .MailFrom span,
        .MailEntry .MailBody .MailTo span,
        .MailEntry .MailBody .MailSubj span {
            font-weight: 600;
            color: #009ee0a8;
        }

    .MailEntry .MailBody .MailSubj span {
        display: none;
        margin-right: 3px;
    }

    .MailEntry .MailBody .MailSubj {
        display: flex;
        flex-direction: row;
    }

    .MailEntry .MailTime {
        justify-content: center;
        display: flex;
        margin-left: auto;
    }

        .MailEntry .MailTime .MailTimeInner {
            margin-top: auto;
            margin-bottom: auto;
            padding-right: 10px;
            font-size: 14px;
            display: flex;
            flex-direction: column;
        }

            .MailEntry .MailTime .MailTimeInner span {
                text-align: center;
            }


.mh-mail-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Karte */
.mh-mail-card {
    position: relative;
    display: flex;
    gap: 14px;
    padding: 16px 18px;
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #e6e9f0;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    cursor:pointer;
}

    .mh-mail-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
    }

    /* Ungelesen */
    .mh-mail-card.mh-unread {
        background: #f5f9ff;
        border-color: #cfe4ff;
    }

/* Linke Akzentleiste */
.mh-mail-accent {
    width: 5px;
    border-radius: 5px;
    background: linear-gradient(180deg, #009ee0a8, #111c43);
}

/* Icon */
.mh-mail-icon {
    font-size: 22px;
    margin-top: 4px;
    color: #009ee0a8;
    align-content: center;
}

/* Content */
.mh-mail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Header */
.mh-mail-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.mh-mail-from {
    font-weight: 600;
    color: #1f2a44;
}

/* Datum */
.mh-mail-date {
    text-align: right;
    font-size: 12px;
    color: #6b7280;
}

.mh-mail-time {
    font-weight: 500;
}

/* Empfänger */
.mh-mail-to {
    font-size: 13px;
    color: #4b5563;
}

/* Betreff */
.mh-mail-subject {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-top: 4px;
}

/* ---- aus SiTTsBlazor.css ---- */
.mail-panel-item-input,
.mail-panel-item-input input{
    width: 100%;
}
    .mail-panel-item-input input {
        width: 100%;
        padding: .26rem .5rem;
        border-radius: .25rem;
        transition: background-color 0.3s ease;
        color: #4B5675;
        background-color: #fff;
        border: 1px solid rgba(0,0,0,.125);
    }
